using System;

namespace Sedna.Core.Security
{
	/// <summary>
	/// simple implementation of the ICredentialService that
	/// returns the same uncyphered value
	/// </summary>
	public class DefaultCredentialsService : ICredentialsService
	{
		public bool CheckCredentials(object expected, object actual)
		{
			return expected==null?actual==null:expected.Equals(actual);
		}

		public object SecureCredentials(object openFormCredentials)
		{
			return openFormCredentials;
		}
	}
}
